// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(53,1) == 0;
	question = "special";
	text1 = "You step out into the wasteland. This is the southern front of the war between the rebels and the forces of General Alwan. Once, the rebels had pushed through the line of forts to the west. Then the Storm Plains pushed them back to here.";
	text2 = "This open, flat stretch of land is far above the fields and woods of the Storm Plains. The air up here is cold and crisp, though the scent of rot and smoke is always present.";
	text3 = "Everywhere you look, you can see the signs of battle. Scorched earth. Bones picked clean by vultures. The tracks of rogue creations, looking for carrion. It is a grim, blasted land, unfit for settlement by civilized beings.";
	text4 = "Miles to the east, across this dark land, the mountains resume, stretching up far above you. Even from this distance, you can make out pillars and huge stone structures. You are just making out Gazaki-Uss, the drakon city.";
	text5 = "It is in sight, but it is still a long journey. With many rogues to face along the way.";
	action = SET_SDF 53 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The road is patrolled by a pack of creations. You aren't sure whether they were sent by the rebels or the Shapers. It doesn't matter anymore.";
	text2 = "After weeks of walking up and down this road, doing battle and living on carrion, they have lost track of their orders or purpose. They just walk up and down the road, attacking anything that seems like easy prey.";
	text3 = "When they get close, you hold up your amulet. They don't even look at it before they attack. If someone told them once to let by the bearer of your amulet, they long ago forgot the instruction.";
	code =
		if (has_spec_item(2) == 0)
			rs(3);
	break;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Shaper Fort - West";
	text3 = "  Gazaki-Uss - East";
	text4 = "  Remember, report all sightings of unfamiliar humans to a drakon!";

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "The road is blocked by a drakon, leading a host of powerful, freshly-made creations. They are taking a rest on their journey west. They are probably going to raid one of the Shapers' forts.";
	text2 = "When the drakon sees you, it holds up a clawed hand. _Stop, intruder. You have been sighted. You might asss well parley with me. Do not run. My petsss are faster._";
	text3 = "_I am Ravass, warrior and raider of Gazaki-Uss. Do you have businessss in thisss land?_";

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I have no business here. I am just exploring.";
	text1 = "_I thought so. A spy. A Shaper spy. You have wealth, I think. And essence within you. I have wondered about the flavor of one who can Shape. You will satisfy my curiosity._";
	text2 = "You try to dissuade the creature, but it barks an order. Its creations attack.";
	action = END_TALK;
	code =
		set_attitude(1006,10);	
	break;
	
begintalknode 12;
	state = 10;
	nextstate = 11;
	condition = has_spec_item(2) > 0;
	question = "I am going to see Ghaldring. (Show the amulet.)";
	text1 = "The drakon doesn't look at the amulet, but it nods. Perhaps it can sense the enchantment on the piece of jewelry. _I have heard of thisss. Ghaldring will parley with the enemy, trying to gain advantage._";
	text2 = "_He isss wise. I will return to Gazaki-Uss, to say you are on the way. Then I will share in the credit for Ghaldring's victoriesss. First, I must warn you._";
	code =
		sf(53,4,1);
	break;
	
begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I want to know something about Gazaki-Uss.";
	text1 = "_Better to concern yourself with your own survival. Why are you here?_";

begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I will not answer to you, rogue.";
	text1 = "_Hssss. Then your insolence has just doomed you. I thought you might be an envoy, but now I know you are just a fool._";
	text2 = "You try to dissuade the creature, but it barks an order. Its creations attack.";
	action = END_TALK;

	
begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Tell me about Gazaki-Uss.";
	text1 = "_It is to the east. It is a mighty fortressss. It is hard to missss. Go there. Stay on the road and you will have fewer troublesss._";

begintalknode 16;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "What is your warning?";
	text1 = "_The creations on the road ahead have been alive too long. They are too mad. They will ignore your amulet, I think. I should have eaten them myself, but I did not want to make the effort._";

begintalknode 17;
	state = 12;
	nextstate = -1;
	condition = get_stat(20) < 9;
	question = "Can you help me to fight them?";
	text1 = "_Hsssss. I still do not want to make an effort, not to protect a little, fleshy thing like you._";

begintalknode 18;
	state = 12;
	nextstate = -1;
	condition = get_stat(20) >= 9;
	question = "You will gain more glory if you help me get to Gazaki-Uss. Say, by clearing my path to the east.";
	text1 = "The drakon, much to its surprise, sees the logic in this. _Yessss. My ordersss are to prune their numbersss anyway. I can gain glory at the same time. It isss ... what isss the word? Efficient._";
	text2 = "It says, _Follow._ Then it turns and walks off.";
	action = END_TALK;
	code =
		award_party_xp(150,20);
		set_attitude(1006,3);	
	break;
	
begintalknode 19;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "I'll be going now.";
	text1 = "_Asss will we. I look forward to seeing the results of Ghaldring's ploy. It will end, no doubt, in glory for the drakonsss. Come, creationsss._";
	text2 = "It turns and walks off to the east. Its servants follow.";
	action = END_TALK;
	code =
		set_attitude(1006,4);	
	break;
	
begintalknode 20;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "I've changed my mind. Prepare to die, rebel!";
	text1 = "The drakon is surprised. _I give you mercy, and you still wish for me to kill you? You Shapersss are mad._";
	text2 = "The drakon barks an order. Its creations attack.";
	action = END_TALK;
	code =
		sf(53,4,0);
		inc_flag(100,0,2);
	break;

	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 36;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 39;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 42;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 43;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		